package com.sve.Controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sve.Dao.ConductorMapper;
import com.sve.Entity.Conductor;

@Controller
@RequestMapping("/Conductor")
public class ConductorController {
	private ConductorMapper conductorService;

	public ConductorMapper getConductorService() {
		return conductorService;
	}

	@Autowired
	public void setConductorService(ConductorMapper conductorService) {
		this.conductorService = conductorService;
	}
	
	//售票员查询
	@RequestMapping("/ConductorInfo")
	public String Conductor(Model model){
		List<Conductor> conductor=conductorService.selectConductor();
		model.addAttribute("Conductor", conductor);
		return "ConductorInfo";
	}
}
